package com.seagox.desk.remote.controller;

import com.seagox.desk.remote.service.IVersionRecordService;
import com.seagox.desk.common.ResultData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * 版本记录
 */
@RestController
@RequestMapping("/versionRecord")
public class VersionRecordController {

	@Autowired
    private IVersionRecordService versionRecordService;
    
    /**
     * 检查更新
     */
    @PostMapping("/check")
    public ResultData check(String platform, String arch, String version) {
        return versionRecordService.check(platform, arch, version);
    }

}

